<!--
 * @Description:标题组件2
 * @Author: gaoyunpeng
 * @Date: 2022-01-22 21:43:05
 * @LastEditors: gaoyunpeng
-->
<template>
  <div class="title">
    <div class="title-left">
      <slot name="left"></slot>
      <p>{{ titleName }}</p>
    </div>
    <div class="title-right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    titleName: {
      type: String
    }
  }
}
</script>

<style lang="scss" scoped>
@import '@/styles/mixin.scss';
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 30px;
  padding: 0 15px;
  background: url('~@/assets/images/bigscreen/t.png') no-repeat;
  background-size: 100% 100%;
  .title-left {
    display: flex;
    align-items: center;
    justify-content: center;
    p {
      @include font_color('title_color');
      margin-left: 10px;
    }
  }
  .title-right {
    display: flex;
    align-items: center;
    img {
      width: 30px;
      height: 10px;
    }
  }
}
</style>
